/**
 * 
 */
package jvs.peer.io;

/**
 * @author qiangli
 *
 */
public interface FileTransfer {
	public interface Monitor {
		public void cancel();
		public int getProgress(); //0 - 100 %
		public String getStatus();
		public boolean isDone(); 
		public boolean isAborted();
	}
	public Monitor send(String to, String filename, File file) throws Exception;
	public Monitor receive(String from, String filename, File saveas) throws Exception;
}
